package cn.dankal.lequ.commom.util;

import android.widget.Toast;

import cn.dankal.lequ.commom.appcomponent.MyApplication;


/**
 * Created by IvanCai on 2016/2/21.
 */
public class LogUtil {
    public static void showToast(String msg) {
        Toast.makeText(MyApplication.getAppContext(), msg, Toast.LENGTH_SHORT).show();
    }
    public static void showNetWorkUnAvalible(String message){
        if(message.contains("Failed to"))
            LogUtil.showToast("无法连接服务器,请检查网络是否可用!");
    }
}
